import http from "@/utils/http";

/**
 * 
 * @param {Object} data 
 * @returns 
 */
export const getMemberOrder = (data)=> http.get('/member/order',data)

// 获取订单详情
export const getMemberOrderDetail = id=> http.get(`/member/order/${id}`)
// 获取预付订单（填写订单）
export const getMemberOrderPre = ()=> http.get('/member/order/pre')
// 立即购买
export const getMemberOrderPreNow = data => http.get('/member/order/pre/now',data)
// 提交订单
export const postMemberOrder = data => http.post('/member/order',data) 
